<html>
<head><meta charset="utf-8"><title>query provided twice · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html">query provided twice</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="218927806"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/218927806" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#218927806">(Dec 05 2020 at 09:45)</a>:</h4>
<p>The <code>is_dllimport_foreign_item</code> query is provided for both local and foreign crates by cg_llvm, but also provided for foreign crates by rustc_metadata. Their behavior differs, so which one should be kept?</p>



<a name="218927873"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/218927873" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#218927873">(Dec 05 2020 at 09:47)</a>:</h4>
<p>The cg_ssa version ignores crates with non-dylib and non-unspecified crate types, while the rustc_metadata version looks at all crates.</p>



<a name="218943297"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/218943297" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#218943297">(Dec 05 2020 at 17:00)</a>:</h4>
<p><span class="user-mention" data-user-id="119009">@eddyb</span> maybe?</p>



<a name="222569183"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/222569183" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#222569183">(Jan 13 2021 at 11:57)</a>:</h4>
<p>bump</p>



<a name="222569309"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/222569309" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#222569309">(Jan 13 2021 at 11:58)</a>:</h4>
<p>I guess one of them gets used instead of the other, in whatever order the driver calls the <code>provide</code> functions?</p>



<a name="222569435"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/222569435" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#222569435">(Jan 13 2021 at 12:00)</a>:</h4>
<p>Which one <strong>should</strong> be the one to be used?</p>



<a name="222569577"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/222569577" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#222569577">(Jan 13 2021 at 12:01)</a>:</h4>
<p>The one from cg_llvm overrides the one from rustc_metadata. Should this happen and the one from rustc_metadata be removed, or should the one from rustc_metadata be used.</p>



<a name="222569664"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/222569664" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#222569664">(Jan 13 2021 at 12:02)</a>:</h4>
<p>Does anything break if the one from rustc_metadata is used instead?</p>



<a name="222619439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/query%20provided%20twice/near/222619439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/query.20provided.20twice.html#222619439">(Jan 13 2021 at 17:51)</a>:</h4>
<p>Nothing broke it seems: <a href="https://github.com/rust-lang/rust/issues/80983">#80983</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>